package com.tyk.bookstore.back.product.model.vo;

import com.tyk.bookstore.back.common.core.model.page.PageVo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author tyk
 * @description 书籍统计信息
 */
@Data
@Schema(name = "BookStatisticPageVo", description = "书籍统计信息")
public class BookStatisticPageVo extends PageVo<BookStatisticPageVo.BookStatistic> {

    @Data
    @Schema(name = "BookStatistic", description = "书籍统计信息")
    public static class BookStatistic implements Serializable {

        @Serial
        private static final long serialVersionUID = 1L;

        @Schema(description = "书籍")
        private Long bookId;

        @Schema(description = "书籍名称")
        private String bookName;

        @Schema(description = "书籍编号")
        private String bookNo;

        @Schema(description = "书籍ISBN")
        private String bookIsbn;

        @Schema(description = "收藏人数")
        private Long collectNum;

        @Schema(description = "支付人数")
        private Long payNum;

        @Schema(description = "评论人数")
        private Long commentNum;

        @Schema(description = "销量")
        private Long saleNum;

        @Schema(description = "点赞人数")
        private Long likeNum;

        @Schema(description = "价格(冗余)")
        private BigDecimal price;

    }
}
